{template modoer_header}
<div id="body">
    <div class="myhead"></div>
    <div class="mymiddle">
        <div class="myleft">
        <!--{eval !$mymenu && $mymenu = 'mmenu';}-->
        <!--{template $mymenu,'member','member'}-->
        </div>
        <div class="myright">
            <div class="myright_top"></div>
            <div class="myright_middle">
                <h3><cite>当前操作的主题:<span class="font_2">$_G[manage_subject][name]{if $_G[manage_subject][subname]}($_G[manage_subject][subname]){/if}</span>[<a href="javascript:void(0);" onclick="item_subject_manage();">更换</a>]</cite>自定义菜单</h3>
                <div class="mainrail">
                    <form method="post" name="myform" action="{url weixin/member/ac/$ac/op/post/rand/$_G[random]}">
                        <div class="space">
                            <ul class="weixin-menu th">
                                <li class="name">菜单名称</li>
                                <li class="type">菜单类型</li>
                                <li class="value">类型值</li>
                                <li class="op">操作</li>
                            </ul>
                            <div id="menu_box"></div>
                            <center id="operation_button">
                                <button type="button" class="btn" id="submit_btn">提交编辑</button>
                                <button type="button" class="btn secondary" id="add_root_menu_btn">添加父菜单</button>
                            </center>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="mybottom"></div>
</div>
<style type="text/css">
    .form-item{margin-bottom:10px;}
    .form-item label{display: block; margin-bottom:5px;}
    .form-item input{margin:3px 0; display: block;}
    .form-item input.inline{display:inline-block;}
    .form-item span.helper{color: #808080;}

    .weixin-menu-root {  margin-top:10px; position: relative; }
    .weixin-menu-parent { margin-left:20px; position: relative; }

    .weixin-menu { border:1px solid #ddd;background:#FFF;position: relative; z-index:10;}
    .weixin-menu:hover { background:#F4f4f4; }
    .weixin-menu:last-child {border-bottom:1px solid #ddd;}
    .weixin-menu:after { content:" "; display:block; height:0; clear:both; visibility:hidden; }
    .weixin-menu.th { background:#EEE;}
    .weixin-menu.sub { margin-left:20px; margin-top:-1px; z-index:11; }
    .weixin-menu > li { float:left; padding:8px 10px 6px; line-height:16px; 
        white-space:nowrap;text-overflow:ellipsis; overflow-x:hidden;}
    .weixin-menu > li:last-child { border-left:0; };
    .weixin-menu > .listorder { width:80px; }
    .weixin-menu > .name { width:150px; }
    .weixin-menu > .type { width:80px; }
    .weixin-menu > .value { width:210px; }
    .weixin-menu > .op { width:200px; }
    .weixin-menu > .op > a { margin-right:5px; }

    .weixin-menu-parent > .weixin-menu { border-top:0; }
    .weixin-menu-parent > .weixin-menu > .name { width:160px; }

    #menu_box { margin-bottom:10px; }
    #menu_box > .message {
        border:1px solid #DDD;
        padding:30px 10px;
        line-height:18px;
        font-size:16px;
        text-align: center;
        background: #FFF;
        border-top: 0;
    }

    .mainrail .op{margin: 0;}
</style>
<script type="text/javascript" src="{URLROOT}/static/javascript/item.js"></script>
<script type="text/javascript" src="{URLROOT}/static/javascript/weixin.form.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    weixin.custom_menu({
        get:'{url weixin/member/ac/g_menu/op/get_menus}',
        edit:'{url weixin/member/ac/g_menu/op/edit}',
        post:'{url weixin/member/ac/g_menu/op/post}'
    });
});
</script>
<!--{eval footer();}-->